package res

import (
	"xr-game-server/dao/resdao"
	"xr-game-server/dto/resdto"
	"xr-game-server/module/protocol"
)

func GetRes(roleId uint64) []*protocol.ItemModel {
	caches := resdao.GetResBy(roleId)
	return resdto.NewArrayResDto(caches)
}
